package com.air.sso.content.controller;

import com.air.sso.content.pojo.Content;
import com.air.sso.content.service.impl.ContentServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(value = "content")
public class ContentController {
    @Resource
    private ContentServiceImpl contentService;

    @GetMapping(value = "list")
    List<Content> getAll(){
        return contentService.list();
    }
}
